export function useRowDrag(enable: boolean) {
  const rowDrop = () => {
    const $table = xTable1.value
    sortable1 = Sortable.create($table.$el.querySelector('.body--wrapper>.vxe-table--body tbody'), {
      handle: '.drag-btn',
      onEnd: (sortableEvent) => {
        const newIndex = sortableEvent.newIndex as number
        const oldIndex = sortableEvent.oldIndex as number
        const currRow = demo1.tableData.splice(oldIndex, 1)[0]
        demo1.tableData.splice(newIndex, 0, currRow)
      }
    })
  }
}